<?php

namespace App\Http\Controllers\Cruise\Internal;

use App\Http\Controllers\BaseController;
use App\Models\Cruise\CruiseCheckAgainstModel;
use Illuminate\Http\JsonResponse;
use Illuminate\Http\Request;

class CruiseCheckController extends BaseController
{
    public function getAgainstIds(Request $request): JsonResponse
    {
        $shopIds = $request->get('shopIds');

        $this->validate($request, [
            'shopIds' => 'array',
        ]);

        return $this->success(CruiseCheckAgainstModel::getWaitAgainstIds($shopIds));
    }
}
